<template>
  <div class="gi">
    <grid :rows="rows">
   <grid-item v-for="i in 9" :key='i.id'>
     <div class="top" :class="px">
       <ul>
         <li>
           <img src="../assets/logo.png" alt="">
           <!--<span>清仓</span>-->
           <span>人气爆款</span>
         </li>
         <li>商品商品商品商品商品商品商品商品商品商品商品商品商品商品</li>
         <li>
           <span>
             <strong>¥100</strong>.00
           </span>
           <XButton mini type="warn" link="/demo" class="btn">购买</XButton>
         </li>
       </ul>
     </div>
   </grid-item>
  </grid>
    <p>热销产品</p>
  </div>
</template>

<script>
  import {Grid, GridItem,XButton} from 'vux'

  export default{
    components: {
      Grid,
      GridItem,
      XButton
    },
    data(){
      return {
        rows: 2,
        px:'vux-1px'
      }
    }

  }
</script>
<style>


 .gi .weui-grid:before {
   border: none;

 }

  .gi .weui-grid:after {
    border: none;
  }

  .gi .weui-grid {
    padding: 0px;
  }
  .gi .weui-grid>.top{
    background-color:#fff;
    margin-top: 10px;
    margin-left:10px;
    margin-right: 10px;


  }
 .gi .weui-grid>.top>ul>li:nth-of-type(1){
   position: relative;
   padding: 10px;
   height: 30px;
   box-sizing: border-box;
   background-color: #ccc;
 }
 .gi .weui-grid>.top>ul>li:nth-of-type(1)>span{
   position: absolute;
   top: 10px;
   left: 10px;
 }
 .gi .weui-grid>.top>ul>li:nth-of-type(1)>img{
   width: 80%;
   height: 30px;
 }
 .gi .weui-grid>.top>ul>li:nth-of-type(2){

   padding: 10px;
   box-sizing: border-box;
 }
 .gi .weui-grid>.top>ul>li:nth-of-type(3){
   color:red;
   padding: 10px;
   box-sizing: border-box;
 }
  .gi .weui-grid:nth-of-type(odd)>.top{
    margin-right:0px;
  }
  .btn{
    background-color: #ff0000;
    float: right;

  }
  p{
    width: 100%;
    text-align: center;
    height: 50px;
    line-height: 50px;
    margin-bottom: 100px;
  }
</style>
